import { defineStore } from 'pinia'

export const ArrData = defineStore('arrdata', {
  persist:{
    enabled:true,
    strategies:[
      {
        key:'arrdata',
        storage:localStorage
      }
    ]
  },
  state() {
    return {
      arr:[]
    }
  },
  // 它是pinia内部的计算数据，我们一般用computed来代替
  getters: {},
  actions: {}
})
